<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <link rel="stylesheet" href="../public/css/bootstrap.css">
</head>

<body>
    <div class="container-fluid">
        <div class="card">
            <div class="card-body">
                <h2 class="card-title">留言板</h2>
                <p class="card-text">
                    <a class="btn btn-primary" href="/post">发表留言</a>
                </p>
                <ul class="list-group">
                    {{each comments}}
                    <li class="list-group-item">
                        <h5>{{$value.name}}</h5>
                        <p>
                            {{$value.content}}
                        </p>
                    </li>
                    {{/each}}
                </ul>
            </div>
        </div>
    </div>
</body>

</html>